﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.OA.Client.Dto
{

    public class ReceiceDto
    {
        /// <summary>
        /// 爱玛工厂编码
        /// </summary>
        public string factory_code { get; set; }
        /// <summary>
        /// 供应商编码
        /// </summary>
        public string supplier_code { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string fits_code { get; set; }
        /// <summary>
        /// 计划版本
        /// </summary>
        public string plan_version { get; set; }
        /// <summary>
        /// 计划月份
        /// </summary>
        public DateTime plan_month { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string batch_serial { get; set; }
        /// <summary>
        /// 计划采购数量
        /// </summary>
        [JsonIgnore]
        public int plan_num { get; set; }
        public Stock[] stock { get; set; }
        public Semi_Stock[] semi_stock { get; set; }
        public Quantity_Rate[] quantity_rate { get; set; }
    }

    public class Stock
    {
        /// <summary>
        /// 成品库存数量
        /// </summary>
        public int fits_stock { get; set; }
        /// <summary>
        /// 成品库存日期
        /// </summary>
        public string stock_date { get; set; }
    }

    public class Semi_Stock
    {
        /// <summary>
        /// 半成品物料代码	半成品物料代码 和 半成品物料名称 不能同时为空
        /// </summary>
        public string supplier_fits_code { get; set; }
        /// <summary>
        /// 半成品物料名称
        /// </summary>
        public string supplier_fits_name { get; set; }
        /// <summary>
        /// 半成品库存数量
        /// </summary>
        public int supplier_fits_stock { get; set; }
        /// <summary>
        /// 半成品库存日期
        /// </summary>
        public string stock_date { get; set; }
    }

    public class Quantity_Rate
    {
        /// <summary>
        /// 产量合格率月份
        /// </summary>
        public string quantity_month { get; set; }
        /// <summary>
        /// 月产量
        /// </summary>
        public int fits_quantity { get; set; }
        /// <summary>
        /// 月合格率
        /// </summary>
        public int fits_rate { get; set; }
    }

}
